package com.explorati.interview.interview.chapterfifteen;

import java.util.Date;
import java.util.Random;

public class SortArrayHelper {

	public static int[] generateRandomArray(int n, int rangeL, int rangeR) {
		int[] arr = new int[n];
		Random rand = new Random();
		for (int i = 0; i < n; i++) {
			arr[i] = rand.nextInt((rangeR - rangeL + 1) + rangeL);
		}
		return arr;
	}
}
